package com.kkb.domain;

import com.kkb.Document;
import com.kkb.domain.enums.Property;

import java.util.Optional;

/**
 * @Author kkb
 * @Description HasType 类型类
 * @Date 2024/8/1 15:04
 * @Version 1.0
 */

public interface HasType extends Document {

    default Optional<String> getType() {
        return Optional.ofNullable((String) get(Property.TYPE.toString()));
    }
}
